<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	//检查Session是否存在，则用户未登录或者登陆超时
	String isLogin = (String)session.getAttribute("auth");
	if (isLogin == null || isLogin.trim().length() < 1 || !"login".equals(isLogin)) { 	//未登录
%>
	<script language = "javascript">
         alert("登陆超时，请重新登录!");
		 top.location.href='index.jsp'; 
    </script>
<%
		//response.sendRedirect("index.jsp");
		return;
	}
%>
